package com.chery.foxlogrecord.demo.enums;

import com.chery.foxlogrecord.core.mvc.serialization.EnumDefinition;

/**
 * @author qiangt
 */
public enum RelationEnum implements EnumDefinition {
    /**
     * 用户类型
     */
    Father("0", "父子"),
    Mather("1", "母子"),
    Husband("2", "丈夫"),
    Wife("3", "妻子"),
    ;
    private final String code;
    private final String comment;

    RelationEnum(final String code, final String comment) {
        this.code = code;
        this.comment = comment;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getComment() {
        return this.comment;
    }

    @Override
    public String toString() {
        return code;
    }
}
